package cn.findviewbydream.evil.app.service.impl

import cn.findviewbydream.evil.app.dao.FillInfoDAO
import cn.findviewbydream.evil.app.service.FillInfoService
import cn.findviewbydream.evil.main.entity.BaseTypeOfWorkEntity
import cn.findviewbydream.evil.main.entity.EmployeeEntity
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.app.service.impl
 * 时间：16-12-23
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：基本信息Service实现类
 ********************************************/
@Service
class FillInfoServiceImpl(@Autowired val fillInfoDAO: FillInfoDAO) : FillInfoService
{

    override fun getEmployeeTypeList(): List<BaseTypeOfWorkEntity>
    {
        return  fillInfoDAO.selectTypeOfWorkList()
    }

    override fun setsetEmployeeInfo(name: String): EmployeeEntity?
    {
        return fillInfoDAO.selectEmployeeByName(name)
    }
}